<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div id="container3" style="min-width:400px;height:400px"></div>
<script>
$(function () {
    $('#container3').highcharts({
    	credits: {
            enabled:false
 		},chart: {
            type: 'column'
        },
        title: {
            text: '月平均收入'
        },
        subtitle: {
            text: '数据来源: TR财务部'
        },
        xAxis: {
            categories: [
                '一月',
                '二月',
                '三月',
                '四月',
                '五月',
                '六月',
                '七月',
                '八月',
                '九月',
                '十月',
                '十一月',
                '十二月'
            ],
            crosshair: true
        },
        yAxis: {
            min: 0,
            title: {
                text: '月平均收入(元)'
            }
        },
        tooltip: {
            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
            '<td style="padding:0"><b>{point.y:.0f} ￥</b></td></tr>',
            footerFormat: '</table>',
            shared: true,
            useHTML: true
        },
        plotOptions: {
            column: {
                pointPadding: 0.1,
                borderWidth: 0
            }
        },
        series: [{
            name: '月入账',
            data: [
            	${list[0].one},
            	${list[1].two}, 
            	${list[2].three}, 
            	${list[3].four}, 
            	${list[4].five}, 
            	${list[5].six},
            	${list[6].seven},
            	${list[7].eight},
            	${list[8].nine},
            	${list[9].ten},
            	${list[10].eleven}, 
            	${list[11].twelve}]
        }]
    });
});

</script>